<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
    <title>Application</title>
  </head>
  <body>
    <%  def picture = "merp_logo_small.png" %>
    <div class="logo">
          <a href="${link}" target="_blank" ><img src="${resource(dir:'images',file:picture)}" style="float:left; margin-left:10px;" alt="IDA" border="0" /></a>
           <!--the language button with flag and so on-->
           <div style="float:right">
            <g:btnLanguage language="${session.language}"  currentController="${cont}" currentView="${vie}" idProject="${proID}" param="${param}"></g:btnLanguage>
           </div>
          </div>
    <hr>
      <div class="body">
          <h1>Application form</h1>
   <g:if test="${flash.message}"><div class="message">${flash.message}</div></g:if>
          
     <g:hasErrors bean="${employeeInstance}">
            <div class="errors"> <g:renderErrors bean="${employeeInstance}" as="list" /> </div>
           </g:hasErrors>

     <!--hmmm-->
             <g:form action="application" method="post" > <!--what does-->
                <div class="dialog">
                    <table>
                        <tbody>

                          <!--civil civic number test with button-->
                          <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="employeeId">
                                     Personnummer:
                                    </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:employeeInstance,field:'employeeId','errors')}">
                                    <input type="text" id="employeeId" maxlength="10" size="10" name="employeeId" title="${Inter.printOut('employee_employeeId_hover',session.language)}" value="${params.employeeId}" />
                                    (format: yymmddxxxx)
                                </td>
                            </tr>
                         </tbody>
                    </table>
                      <input  type="hidden" id="checkErrorId" name="checkErrorId" value="checkErrorApplication">
                </div>
                   
                      <!--check if civic number exists or not -->
                    <div class="buttons">
                        <span class="button"><input class="applicationr" type="submit" value="Ok" /></span> <!--if new employee else annat-->
                    </div>
                    </g:form>
                     

                <!--hmm-->
      </div>
  </body>
</html>

